const pug = require('pug');

module.exports = {
	path: '/',
	render: function(req, res) {

		const apis = [
			'/user',
			'/users',
			'/employee/5',
			'/feature/bar',
			'/feature/999',
			'/features/50',
			'/features/50/?foo=bar&x=y',
			'/image/400x200',
			'/image/300x500/000/fff',
			'/image/600x150/000/fff.gif&text=dummyimage.com+rocks!',
			'/images'
		];


		// Compile the Pug template
		const compiledFunction = pug.compileFile(__dirname + '/index.pug');

		// Render the HTML using the compiled function
		const html = compiledFunction({ apis });

		res.send(200, html);
	}
};
